<link href="{$_URL}static/admin/css/master.css" rel="stylesheet">
<script src="{$_URL}static/js/jquery-1.10.2.min.js"></script>
<script src="{$_URL}static/plugins/layer/layer.js"></script>
<form id="frm" action="{$getConfig.upload_http}" target="f" method="post" enctype="multipart/form-data">
    <span class="file-box">选择文件
        <input type="hidden" name="classname" value="{$updata.classname}"><!-- input hidden class 值 -->
        <input type="hidden" name="callback" value="{$updata.callback}"><!-- 回调函数默认uponevalue -->
        <input type="hidden" name="uploadtoken" value="{$updata.uploadtoken}"><!-- token验证 -->
        <input type="hidden" name="method" value="{$updata.method}"><!-- 访问上传文件方法 -->
        <input type="file" name="upfileone" class="uploadone_click" value="">
    </span>
</form>
<iframe name="f" style="display:none;"></iframe>
<script type="text/javascript">
var callbackvalue='{$updata.callback}';
{literal}
    $(function(){
        $('.uploadone_click').change(function(){
            $('#frm').submit();
        })
    })
    //上传压缩文件
    function upfile(data){
        var str='window.parent.'+callbackvalue;
        eval(str)(data);
    }
{/literal}
</script>